OUT := server
OBJS := server.o opDir.o stack.o dealCommand.o opFile.o printLog.o taskQueue.o tcpInit.o threadPool.o tidArr.o worker.o epoll.o

$(OUT): $(OBJS)
	gcc $^ -o $@ -lpthread
%.o: %.c
	gcc -c $< -o $@ -g -Wall

.PHONY: clean rebuild
clean:
	rm -f *.o $(OUT) messageInf.log
rebuild: clean $(OUT)
